package sample.common;

import javafx.scene.chart.LineChart;
import javafx.scene.chart.NumberAxis;
import javafx.scene.chart.XYChart;
import javafx.scene.layout.VBox;
import sample.model.ExtremeData;
import sample.model.StandardData;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class DrawExtremeLineChartImpl implements IDrawLineChart {

//    private List<ExtremeData> list;
//    private Map<Integer,List<StandardData>> collect;
//    public DrawExtremeLineChartImpl(List<ExtremeData> list){
//        this.list = list;
//        setCollect();
//    }
//    public void setCollect(){
//        collect = list.stream().collect(Collectors.groupingBy(ExtremeD));
//    }
//

    @Override
    public void drawDBTLineChart() {
//        int mon = 1;
//        VBox vbox = new VBox();
//        vbox.setPrefWidth(2000);
//        for(Map.Entry<Integer,List<StandardData>> entry : collect.entrySet()){
//            List<StandardData> value = entry.getValue();
////                lineChart.setCreateSymbols(false);
////                dataSeries1.setName("2020");
//            NumberAxis xAxis = new NumberAxis();
//            xAxis.setLabel("第"+(mon++)+"月");
//            NumberAxis yAxis = new NumberAxis();
//            yAxis.setLabel("DBT");
//            XYChart.Series series = new XYChart.Series();
//            LineChart lineChart = new LineChart(xAxis, yAxis);
//            for (int i = 0; i < value.size(); i++) {
//                StandardData standardData = list.get(i);
////                    e.setNode(new Label("("+i+","+standardData.getDBT()+")"));
//                XYChart.Data<Integer,Double> e = new XYChart.Data<>(i,standardData.getDBT());
////                XYChart.Data<Integer,Object> e = new XYChart.Data<>(i,objectList.get(i));
//                series.getData().add(e);
//            }
//            lineChart.getData().add(series);
//            useToolTip(series);
//            vbox.getChildren().add(lineChart);
//        }
//        show2(vbox);
    }


    @Override
    public void drawAPLineChart() {

    }

    @Override
    public void drawCCLineChart() {

    }

    @Override
    public void drawRHLineChart() {

    }

    @Override
    public void drawDPTLineChart() {

    }

    @Override
    public void drawWDLineChart() {

    }

    @Override
    public void drawWSLineChart() {

    }

    @Override
    public void drawTHLineChart() {

    }

    @Override
    public void drawNRLineChart() {

    }

    @Override
    public void drawDFLineChart() {

    }

    @Override
    public void drawHSLLineChart() {

    }

    @Override
    public void drawWBTLineChart() {

    }

    @Override
    public void drawVPLineChart() {

    }

    @Override
    public void drawEPLineChart() {

    }

    @Override
    public void drawEHLineChart() {

    }

    @Override
    public void drawSHLineChart() {

    }

    @Override
    public void drawWHLineChart() {

    }

    @Override
    public void drawNHLineChart() {

    }

    @Override
    public void drawVTLineChart() {

    }

    @Override
    public void drawETLineChart() {

    }
}
